import os
import shutil

def copy_files_from_txt(txt_file_path, destination_directory):
    # Read the file names from the text file
    with open(txt_file_path, 'r') as file:
        file_names = file.read().splitlines()

    # Copy each file to the destination directory
    for file_name in file_names:
        file_path = os.path.join(destination_directory, file_name)
        if os.path.exists(file_path):
            shutil.copy2(file_path, os.getcwd())
        else:
            print(f"File '{file_name}' does not exist in the destination directory.")

    print("File copying completed.")
copy_files_from_txt("abelian-groups.data","/mnt/d/tmp/gap-dsp-result/original-data");
